package com.training1.core.entity;

import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.Date;

import org.apache.ibatis.type.Alias;

import com.training1.core.common.entity.DataEntity;

@Alias("firContract")
/**
 * 一审合同名称
 *
 */
public class FirContractEntity extends DataEntity{
	
	private static final long serialVersionUID = -348179059019539374L;
	
	
	private String userName;//客户姓名
	
	private String companyName;//所属公司
	
	private String cellphone;//手机号码、
	
	private BigDecimal exceptAmount;//拟借金额
	
	private Date appDate;//申请日期

	private int cyc;//服务期数
	
	private String status;//合同状态

	private String appDateStr;//格式化申请日期
	
	

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public String getCellphone() {
		return cellphone;
	}

	public void setCellphone(String cellphone) {
		this.cellphone = cellphone;
	}


	public BigDecimal getExceptAmount() {
		return exceptAmount;
	}

	public void setExceptAmount(BigDecimal exceptAmount) {
		this.exceptAmount = exceptAmount;
	}

	public Date getAppDate() {
		return appDate;
	}
	/**
	 * 格式化时间
	 * @param paymentTime
	 */
	public void setAppDate(Date appDate) {
		this.appDate = appDate;
		if(null != appDate){
			SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd");
			this.setAppDateStr(sf.format(appDate));
		}
	}

	public int getCyc() {
		return cyc;
	}

	public void setCyc(int cyc) {
		this.cyc = cyc;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getAppDateStr() {
		return appDateStr;
	}


	public void setAppDateStr(String appDateStr) {
		this.appDateStr = appDateStr;
	
	}

	

}
